// import axios from 'axios';
import instance from '../utils/request'

// 定义基础URL，与后端接口地址对应
const baseURL = 'http://172.20.10.10:3000';

// 获取流程审批
export const getLiu = () => {
  return instance.get(`${baseURL}/processApproval`);
};

// 添加审批
export const addLiu = (data) => {
  return instance.post(`${baseURL}/processApproval`, data);
};

// 更新审批状态
export const changeLiu = (data) => {
  return instance.put(`${baseURL}/processApproval/${data.id}`, data);
};





